#-------------------------------------------------
#
# Project created by QtCreator 2023-12-25T14:05:50
#
#-------------------------------------------------

QT       += core gui
QT       += serialport

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11 console

#中文报错："常量中有换行符"
msvc{
    QMAKE_CXXFLAGS += /source-charset:utf-8 /execution-charset:utf-8
}

TARGET = drawing_gun_robot
TEMPLATE = app

# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
DEFINES += GLOG_NO_ABBREVIATED_SEVERITIES
# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

INCLUDEPATH += "$${PWD}\src\tcpCilent"
INCLUDEPATH += "$${PWD}\src\tcpCilent\elite_robot"
INCLUDEPATH += "$${PWD}\src\utils"
INCLUDEPATH += "$${PWD}\src\query_serial"

SOURCES += \
        main.cpp \
        mainwindow.cpp \
    src/tcpCilent/CEvtVar.cpp \
    src/tcpCilent/localTcpClient.cpp \
    src/tcpCilent/mechversionclient.cpp \
    src/tcpCilent/elite_robot/elite_robot_sdk.cpp \
    src/tcpCilent/elite_robot/elite_robot_sdk_param.cpp \
    src/tcpCilent/elite_robot/elite_robot_sdk_protocol.cpp \
    src/utils/logger.cpp \
    src/utils/utils.cpp \
    src/query_serial/queryserial.cpp \
    src/query_serial/rmgripper.cpp

HEADERS += \
        mainwindow.h \
    src/tcpCilent/CEvtVar.h \
    src/tcpCilent/localTcpClient.h \
    src/tcpCilent/mechversionclient.h \
    src/tcpCilent/elite_robot/elite_robot_sdk.h \
    src/tcpCilent/elite_robot/elite_robot_sdk_param.h \
    src/tcpCilent/elite_robot/elite_robot_sdk_protocol.h \
    src/utils/logger.h \
    src/utils/utils.h \
    src/query_serial/queryserial.h \
    src/query_serial/rmgripper.h

INCLUDEPATH += "$${PWD}\depends\glog\include"
INCLUDEPATH += "$${PWD}\depends\hv\include"
INCLUDEPATH += "$${PWD}\depends\rapidjson\include"

LIBS += -L"$${PWD}\depends\glog\lib"         -lglog
LIBS += -L"$${PWD}\depends\hv\lib"           -lhv

FORMS += \
        mainwindow.ui
